Fix minor alloc.c problems found by static checking.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 03:38:40 +0000 (20:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 03:38:40 +0000 (20:38 -0700)
commit119182f9785902b0a150a3560cd5bf330bb51015
tree03a44ba6eda875300d86d45c84a21317a5d3ffd0
parentc9cb3cb7bc42a19a744570eba86af00183ccb8f8
Fix minor alloc.c problems found by static checking.

* alloc.c (_malloc_internal, _free_internal) [!DOUG_LEA_MALLOC]:
New extern decls, to avoid calling undeclared functions.
(dont_register_blocks): Define if ((!SYSTEM_MALLOC && !SYNC_INPUT)
&& GC_MALLOC_CHECK), not if ((GC_MARK_STACK || defined
GC_MALLOC_CHECK) && GC_MALLOC_CHECK), to match when it's used.
(NEED_MEM_INSERT): New macro.
(mem_insert, mem_insert_fixup) [!NEED_MEM_INSERT]: Remove; unused.
src/ChangeLog
src/alloc.c